/*     */ package dm.jdbc.driver;
/*     */ 
/*     */ import dm.jdbc.desc.ParameterDesc;
/*     */ import dm.jdbc.innerData.DmdbParamVal;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class DmdbInfo
/*     */   implements Cloneable
/*     */ {
/*  26 */   private DmdbColumn[] columnsInfo = null;
/*     */   
/*  28 */   private ParameterDesc[] paramsInfo = null;
/*     */   
/*  30 */   private DmdbParamVal[] m_paramsVal = null;
/*     */   
/*  32 */   private boolean hasResultSet = false;
/*     */   
/*  34 */   private String PrintMsg = null;
/*     */   
/*  36 */   private int sqlcode = 0;
/*     */   
/*  38 */   private int retStmtType = -1;
/*  39 */   private int colCount = 0;
/*  40 */   private long rowCount = 0L;
/*  41 */   private int parmCount = 0;
/*  42 */   private boolean updatable = false;
/*  43 */   private int fetchedRows = 0;
/*  44 */   private long printLen = 0L;
/*  45 */   private long rowid = -1L;
/*     */   
/*  47 */   private String explain = null;
/*     */   
/*  49 */   private int rsCacheOff = 0;
/*     */   
/*  51 */   private boolean canCache = false;
/*     */   
/*  53 */   private boolean m_hasBatchRowCnt = false;
/*  54 */   private boolean m_hasRetIds = false;
/*  55 */   private boolean m_savePoint = false;
/*     */   
/*  57 */   private boolean isBdtaRS = false;
/*     */   
/*     */ 
/*     */ 
/*     */   public void setSavepointFlag(boolean flag)
/*     */   {
/*  63 */     this.m_savePoint = flag;
/*     */   }
/*     */   
/*     */   public boolean getSavepointFlag() {
/*  67 */     return this.m_savePoint;
/*     */   }
/*     */   
/*     */   public final void setBatchRowCntFlag(boolean flag) {
/*  71 */     this.m_hasBatchRowCnt = flag;
/*     */   }
/*     */   
/*     */   public final boolean hasBatchRowCnt() {
/*  75 */     return this.m_hasBatchRowCnt;
/*     */   }
/*     */   
/*     */   public final void setRetIdsFlag(boolean flag) {
/*  79 */     this.m_hasRetIds = flag;
/*     */   }
/*     */   
/*     */   public final boolean hasRetIds() {
/*  83 */     return this.m_hasRetIds;
/*     */   }
/*     */   
/*     */   public final void setColumnsInfo(DmdbColumn[] columnsInfo) {
/*  87 */     this.columnsInfo = columnsInfo;
/*     */   }
/*     */   
/*     */   public final DmdbColumn[] getColumnsInfo() {
/*  91 */     return this.columnsInfo;
/*     */   }
/*     */   
/*     */   public final void setParamsInfo(ParameterDesc[] paramsInfo) {
/*  95 */     this.paramsInfo = paramsInfo;
/*     */   }
/*     */   
/*     */   public DmdbParamVal[] getInitParamVal() {
/*  99 */     this.m_paramsVal = new DmdbParamVal[this.paramsInfo.length];
/* 100 */     for (int i = 0; i < this.m_paramsVal.length; i++) {
/* 101 */       this.m_paramsVal[i] = new DmdbParamVal();
/*     */     }
/* 103 */     return this.m_paramsVal;
/*     */   }
/*     */   
/*     */   public final ParameterDesc[] getParamsInfo() {
/* 107 */     return this.paramsInfo;
/*     */   }
/*     */   
/*     */   public final DmdbParamVal[] getParamsVal() {
/* 111 */     if ((this.m_paramsVal == null) && (this.paramsInfo != null)) {
/* 112 */       getInitParamVal();
/*     */     }
/* 114 */     return this.m_paramsVal;
/*     */   }
/*     */   
/*     */   public final int getColumnCount() {
/* 118 */     if (this.columnsInfo == null) {
/* 119 */       return 0;
/*     */     }
/* 121 */     return this.columnsInfo.length;
/*     */   }
/*     */   
/*     */   public final int getParameterCount()
/*     */   {
/* 126 */     if (this.paramsInfo == null) {
/* 127 */       return 0;
/*     */     }
/* 129 */     return this.paramsInfo.length;
/*     */   }
/*     */   
/*     */   public final int getOutParamCount()
/*     */   {
/* 134 */     int count = 0;
/* 135 */     for (int i = 0; i < getParameterCount(); i++) {
/* 136 */       if (this.paramsInfo[i].getIOType() != 0) {
/* 137 */         count++;
/*     */       }
/*     */     }
/* 140 */     return count;
/*     */   }
/*     */   
/*     */   public final void setRowCount(long rowCount) {
/* 144 */     this.rowCount = rowCount;
/*     */   }
/*     */   
/*     */   public final long getRowCount() {
/* 148 */     return this.rowCount;
/*     */   }
/*     */   
/*     */   public final boolean getHasResultSet() {
/* 152 */     return this.hasResultSet;
/*     */   }
/*     */   
/*     */   public final void setHasResultSet(boolean hasResultSet) {
/* 156 */     this.hasResultSet = hasResultSet;
/*     */   }
/*     */   
/*     */   public final void setRowId(long rowid) {
/* 160 */     this.rowid = rowid;
/*     */   }
/*     */   
/*     */   public final long getRowId() {
/* 164 */     return this.rowid;
/*     */   }
/*     */   
/*     */   public final void setPrintMsg(String PrintMsg) {
/* 168 */     this.PrintMsg = PrintMsg;
/*     */   }
/*     */   
/*     */   public final String getPrintMsg() {
/* 172 */     return this.PrintMsg;
/*     */   }
/*     */   
/*     */   public final void setSQLCode(int code) {
/* 176 */     this.sqlcode = code;
/*     */   }
/*     */   
/*     */   public final int getSQLCode() {
/* 180 */     return this.sqlcode;
/*     */   }
/*     */   
/*     */   public final boolean getUpdatable() {
/* 184 */     return this.updatable;
/*     */   }
/*     */   
/*     */   public final void setUpdatable(boolean val) {
/* 188 */     this.updatable = val;
/*     */   }
/*     */   
/*     */   public final int getRetStmtType() {
/* 192 */     return this.retStmtType;
/*     */   }
/*     */   
/*     */   public final void setRetStmtType(int stmtType) {
/* 196 */     this.retStmtType = stmtType;
/*     */   }
/*     */   
/*     */   public final boolean isRetStmtTypeQuery() {
/* 200 */     if ((this.retStmtType == 160) || 
/* 201 */       (this.retStmtType == 198) || 
/* 202 */       (this.retStmtType == 162)) {
/* 203 */       return true;
/*     */     }
/*     */     
/* 206 */     return false;
/*     */   }
/*     */   
/*     */   public final boolean isRetStmtTypeUpd() {
/* 210 */     if ((this.retStmtType == 160) || 
/* 211 */       (this.retStmtType == 198)) {
/* 212 */       return true;
/*     */     }
/*     */     
/* 215 */     return false;
/*     */   }
/*     */   
/*     */   public final void setCanCache(boolean val) {
/* 219 */     this.canCache = val;
/*     */   }
/*     */   
/*     */   public final boolean getCanCache() {
/* 223 */     return this.canCache;
/*     */   }
/*     */   
/*     */   public final Object clone()
/*     */   {
/* 228 */     DmdbInfo dbInfo = null;
/*     */     try {
/* 230 */       dbInfo = (DmdbInfo)super.clone();
/* 231 */       if (this.columnsInfo != null) {
/* 232 */         dbInfo.columnsInfo = ((DmdbColumn[])this.columnsInfo.clone());
/* 233 */         for (int i = 0; i < this.columnsInfo.length; i++) {
/* 234 */           dbInfo.columnsInfo[i] = ((DmdbColumn)this.columnsInfo[i].clone());
/*     */         }
/*     */       }
/* 237 */       if (this.paramsInfo != null) {
/* 238 */         dbInfo.paramsInfo = ((ParameterDesc[])this.paramsInfo.clone());
/* 239 */         for (int i = 0; i < this.paramsInfo.length; i++) {
/* 240 */           dbInfo.paramsInfo[i] = 
/* 241 */             ((ParameterDesc)this.paramsInfo[i].clone());
/*     */         }
/*     */       }
/*     */       
/* 245 */       dbInfo.m_paramsVal = null;
/*     */     } catch (CloneNotSupportedException e) {
/* 247 */       e.printStackTrace();
/*     */     }
/* 249 */     return dbInfo;
/*     */   }
/*     */   
/*     */   public void setColCount(int colCount) {
/* 253 */     this.colCount = colCount;
/*     */   }
/*     */   
/*     */   public int getColCount() {
/* 257 */     return this.colCount;
/*     */   }
/*     */   
/*     */   public void setParmCount(int parmCount) {
/* 261 */     this.parmCount = parmCount;
/*     */   }
/*     */   
/*     */   public int getParmCount() {
/* 265 */     return this.parmCount;
/*     */   }
/*     */   
/*     */   public void setFetchedRows(int fetchedRows) {
/* 269 */     this.fetchedRows = fetchedRows;
/*     */   }
/*     */   
/*     */   public int getFetchedRows() {
/* 273 */     return this.fetchedRows;
/*     */   }
/*     */   
/*     */   public void setPrintLen(long printLen) {
/* 277 */     this.printLen = printLen;
/*     */   }
/*     */   
/*     */   public long getPrintLen() {
/* 281 */     return this.printLen;
/*     */   }
/*     */   
/*     */   public void setExplain(String explain) {
/* 285 */     this.explain = explain;
/*     */   }
/*     */   
/*     */   public String getExplain() {
/* 289 */     return this.explain;
/*     */   }
/*     */   
/*     */   public void setRsCacheOffset(int offset) {
/* 293 */     this.rsCacheOff = offset;
/*     */   }
/*     */   
/*     */   public int getRsCacheOffset() {
/* 297 */     return this.rsCacheOff;
/*     */   }
/*     */   
/*     */   public void setBdtaRs(boolean isBdtaRS) {
/* 301 */     this.isBdtaRS = isBdtaRS;
/*     */   }
/*     */   
/*     */   public boolean isBdtaRs() {
/* 305 */     return this.isBdtaRS;
/*     */   }
/*     */ }


/* Location:              D:\Program Files\DBMS_20150813\jdbc\Dm7JdbcDriver17.jar!\dm\jdbc\driver\DmdbInfo.class
 * Java compiler version: 2 (46.0)
 * JD-Core Version:       0.7.1
 */